package com.hjb.springbootdemo.proxy;

//动态代理模式
public class Test {
    public static void main(String[] args) {
        Zhansan zhs = new Zhansan();
        MyProxyHandler myProxyHandler = new MyProxyHandler(zhs);
        Person person = (Person) myProxyHandler.getInstance(zhs);
        person.eat();
    }
}
